package com.tjk.luckymoney.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/hello")
public class HelloController {


    @GetMapping("/say")
    public String say(@RequestParam(value = "id",required = false,defaultValue = "0") String id) {
        return "id=" + id;
//        return "index";
    }
    @GetMapping("/hello2")
    public String say2() {
        return "index";
    }
}
